/*
 * Created with IDEA.
 * Description: A fully open-sourced high performance unibody close-loop driver for
 * Step-Motor, which was used in my DummyRobot project:
 * https://github.com/peng-zhihui/Dummy-Robot
 * Based on XDrive project: https://github.com/unlir/XDrive
 * @Author: Pengzhihui
 * @Date: ${DATE} ${TIME}
 *
 */

//
// Created by deng on 2022/12/25.
//

#ifndef MOTOR_S_BUTTON_STM32_H
#define MOTOR_S_BUTTON_STM32_H

#include "button_base.h"

class Button : public ButtonBase
{
public:
    explicit Button(uint8_t _id) : ButtonBase(_id)
    {}

    Button(uint8_t _id, uint32_t _longPressTime) : ButtonBase(_id, _longPressTime)
    {}

    bool IsPressed();

private:
    bool ReadButtonPinIO(uint8_t _id) override;
};

#endif //MOTOR_S_BUTTON_STM32_H
